import { gql } from 'apollo-server-micro';

export const questionTypeDefs = gql`
  type ResultQuestion {
    question: String!
    category: String
    sql: String
  }

  type QuestionRecommendation {
    id: ID!
    status: String!
    questions: [ResultQuestion!]!
  }

  extend type Query {
    getProjectRecommendationQuestions(id: ID!): QuestionRecommendation
    getThreadRecommendationQuestions(id: ID!): QuestionRecommendation
  }
`;
